#ifndef __APP_MQTT_H__
#define __APP_MQTT_H__
#define MQTT_BROKER_URI "ws://192.168.42.25:1883"
#define MQTT_CLIENT_ID "d54eb2bf-8951-43d0-93e3-b3dbd8b6a999"
#define MQTT_SUBSCRIBE_TOPIC "web_to_gateway"
#define MQTT_PUBLISH_TOPIC "gateway_to_web"
#define MQTT_QOS 1
int app_mqtt_init(void);
/**
 * @brief 发布mqtt消息
 */
int app_mqtt_publish( char *payload);


/**
 * @brief 注册接收数据的回调函数
 */
int app_mqtt_register_recv_callback( int  (*callback)(char *));


/**
 * @brief 销毁mqtt
 */
void app_mqtt_destroy();

#endif 
/* __APP_MQTT_H__ */